
import * as echarts from 'echarts/core'
import { BarChart, PieChart, LineChart, LinesChart, ScatterChart, GaugeChart, RadarChart, PictorialBarChart, FunnelChart, CustomChart } from 'echarts/charts'
import {
  TitleComponent,
  TooltipComponent,
  ToolboxComponent,
  GridComponent,
  LegendComponent,
  DataZoomComponent,
  PolarComponent,
} from 'echarts/components'
import {
  CanvasRenderer
} from 'echarts/renderers'

// 注册组件
echarts.use(
  [
    TitleComponent,
    CustomChart,
    LinesChart,
    TooltipComponent,
    GridComponent,
    BarChart,
    PieChart,
    CanvasRenderer,
    ToolboxComponent,
    LegendComponent,
    PolarComponent,
    RadarChart,
    LineChart,
    PictorialBarChart,
    ScatterChart,
    GaugeChart,
    FunnelChart,
    DataZoomComponent
  ]
)

export default echarts